package cn.gjxblog.validation.mvc.demo1;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.validation.beanvalidation.MethodValidationPostProcessor;

@SpringBootApplication(scanBasePackages= "cn.gjxblog.validation.mvc.demo1")
public class ValidationDemo3BootStrap {

    public static void main(String[] args) {
        SpringApplication.run(ValidationDemo3BootStrap.class,args);
    }


    @Bean
    public MethodValidationPostProcessor mvcMethodValidationPostProcessor(){
        return new MethodValidationPostProcessor();
    }
}
